<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta charset="utf-8">
            <meta name="language" content="en" />
            <meta name="viewport" content="initial-scale=1, maximum-scale=1">
                <link href="<?php echo Yii::app()->theme->baseUrl; ?>/images/favicon.ico" rel="shortcut icon" type="image/x-icon">
                    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/reset.css" />
                    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery.mobile-1.4.1.min.css" />
                    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/jquery.mobile.datepicker.css">
                        <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/idangerous.swiper.css">
                            <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" />
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery-1.8.2.min.js"></script>
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.mobile-1.4.1.js"></script>    
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.ui.datepicker.js"></script>
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.mobile.datepicker.js"></script>
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/jquery.creditCardValidator.js"></script>
                            <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&amp;language=vi"></script>
                            <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/angular.min.js"></script>
                            <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/map.js"></script>
                            <title><?php echo CHtml::encode($this->pageTitle); ?></title>

                            </head>
                            <body class="home">
                                <section data-role="page" class="wrapper">
                                    <header data-role="header" class="header">
                                        <div class="logo">
                                            <a class="" href="/"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/home-ico.png"></a>
                                        </div>
                                        <h1 class="ui-title" role="heading" aria-level="1">
                                            <a href="/"><img src="<?php echo Yii::app()->params['tanhailong']; ?>/themes/default/images/logo.jpg"></a>
                                        </h1>
                                        <div class="language">
                                            <?php if (isset($_GET['id'])): ?>
                                                <a href="#" data-rel="back" data-ajax="false"><img src="<?php echo Yii::app()->theme->baseUrl; ?>/images/back.PNG"></a>
                                            <?php else:
                                                ?>
                                                <div class="choose-language">
                                                    <h1 id="language"><?= strtoupper(Yii::app()->session['_lang']) ?></h1>
                                                </div>
                                            <?php endif; ?>
                                        </div>

                                    </header>
                                    <!--END: header-->
                                    <section data-role="content" class="ui-content">
                                        <?php echo $content; ?>
                                    </section>
                                    <!--END: content-->
                                    <footer data-role="footer" class="footer">
                                        <hr>
                                            <div class="left">
                                                COPYRIGHT &copy; 2014 Tan Hai Long - Silverland Hotel Group.<br>
                                                    ALL RIGHTS RESERVE
                                            </div>
                                            <div class="right">
                                                <ul>
                                                    <li><a href="#" title="youtube" class="youtube"></a></li>
                                                    <li><a href="#" title="twitter" class="twitter"></a></li>
                                                    <li><a href="#" title="facebook" class="facebook"></a></li>
                                                </ul>
                                            </div>
                                    </footer>
                                    <!--END: footer-->
                                </section>

                                <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/idangerous.swiper-2.1.min.js"></script>
                                <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/booking.js"></script>
                                <script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/payment.js"></script>
                                <script type="text/javascript">
							
                                    if(jQuery("#arrival_date").length){
                                        jQuery("#arrival_date").datepicker({
                                            dateFormat : 'D, M dd, yy',
                                            altField            : "#arrival-date",
                                            altFormat           : "dd-mm-yy",
                                            showOtherMonths     : false,
                                            selectOtherMonths : true,
                                            showWeek            : false,
                                            changeYear          : false,
                                            changeMonth         : false,
                                            minDate: 'today',
                                            beforeShow: function(input, inst) {
                                                jQuery('#ui-datepicker-div').removeClass(function() {
                                                    return jQuery('#arrival_date').get(0).id; 
                                                });
                                                jQuery('#ui-datepicker-div').addClass(this.id);
                                            }
                                        }).on('focus',function(){
                                            $(this).trigger('blur');
                                        });
                                    }
                                    if(jQuery("#expire_date").length){
                                        jQuery("#expire_date").datepicker({
                                            dateFormat : 'mm, yy',
                                            altField            : "#expire-date",
                                            altFormat           : "dd-mm-yy",
                                            showOtherMonths     : false,
                                            selectOtherMonths : true,
                                            showWeek            : false,
                                            changeYear          : false,
                                            changeMonth         : false,
                                            minDate: 'today',
                                            dayNames: ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturaday'],
                                            beforeShow: function(input, inst) {
                                                jQuery('#ui-datepicker-div').removeClass(function() {
                                                    return jQuery('#expire_date').get(0).id; 
                                                });
                                                jQuery('#ui-datepicker-div').addClass(this.id);
                                            }
                                        }).on('focus',function(){
                                            $(this).trigger('blur');
                                        });
                                    }
                                    
                                </script>
                                <script type="text/javascript">
                                    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
                                            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
                                        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
                                    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
                                    ga('create', 'UA-50079623-1', 'silverlandhotels.com');
                                    ga('send', 'pageview');

                                </script>
                            </body>
                            </html>
